.class Limoblife/yogamoment/lite/MainActivity$1;
.super Ljava/lang/Object;
.source "MainActivity.java"

# interfaces
.implements Landroid/view/View$OnTouchListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Limoblife/yogamoment/lite/MainActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field oldTouchValue:F

.field final synthetic this$0:Limoblife/yogamoment/lite/MainActivity;


# direct methods
.method constructor <init>(Limoblife/yogamoment/lite/MainActivity;)V
    .locals 1
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Limoblife/yogamoment/lite/MainActivity$1;->this$0:Limoblife/yogamoment/lite/MainActivity;

    .line 667
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 668
    const/4 v0, 0x0

    iput v0, p0, Limoblife/yogamoment/lite/MainActivity$1;->oldTouchValue:F

    return-void
.end method


# virtual methods
.method public onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z
    .locals 5
    .parameter "v"
    .parameter "event"

    .prologue
    const/4 v4, 0x0

    const/high16 v3, 0x42c8

    .line 671
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getAction()I

    move-result v1

    packed-switch v1, :pswitch_data_0

    .line 692
    :cond_0
    :goto_0
    :pswitch_0
    const/4 v1, 0x1

    :goto_1
    return v1

    .line 673
    :pswitch_1
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v1

    iput v1, p0, Limoblife/yogamoment/lite/MainActivity$1;->oldTouchValue:F

    goto :goto_0

    .line 679
    :pswitch_2
    invoke-virtual {p2}, Landroid/view/MotionEvent;->getX()F

    move-result v0

    .line 680
    .local v0, currentX:F
    iget v1, p0, Limoblife/yogamoment/lite/MainActivity$1;->oldTouchValue:F

    sub-float v2, v0, v3

    cmpg-float v1, v1, v2

    if-gez v1, :cond_1

    .line 682
    iget-object v1, p0, Limoblife/yogamoment/lite/MainActivity$1;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->showDefaultPrevView()V
    invoke-static {v1}, Limoblife/yogamoment/lite/MainActivity;->access$0(Limoblife/yogamoment/lite/MainActivity;)V

    move v1, v4

    .line 683
    goto :goto_1

    .line 685
    :cond_1
    iget v1, p0, Limoblife/yogamoment/lite/MainActivity$1;->oldTouchValue:F

    add-float v2, v0, v3

    cmpl-float v1, v1, v2

    if-lez v1, :cond_0

    .line 686
    iget-object v1, p0, Limoblife/yogamoment/lite/MainActivity$1;->this$0:Limoblife/yogamoment/lite/MainActivity;

    #calls: Limoblife/yogamoment/lite/MainActivity;->showDefaultNextView()V
    invoke-static {v1}, Limoblife/yogamoment/lite/MainActivity;->access$1(Limoblife/yogamoment/lite/MainActivity;)V

    move v1, v4

    .line 687
    goto :goto_1

    .line 671
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_1
        :pswitch_2
        :pswitch_0
        :pswitch_2
        :pswitch_2
    .end packed-switch
.end method
